#ifndef STRINGUTILS_H
#define STRINGUTILS_H

#include <QString>

#include <string>
#include <vector>

namespace qrcode{

class StringUtils
{
private:
    static bool ON;

public:
    StringUtils();
    bool ContainChinese(std::string str);
    bool IsPureNumber(std::string str);
    bool IsAlphaNumber(std::string str);
    bool IsByte(std::string str);
    static void Utf8ToGB2312(std::string &str);
    static void Utf8ToShift_JIS(std::string &str);
    static int ToInt(char ch);

    //测试使用，输出
    static QString ToString(std::vector<int> &vec);
    static QString ToString(std::vector<char> &vec);
    static void PRINT(int x);
    static void PRINT(QString str);
    static void PRINT(QString str, int x);
    static void PRINT(QString str, int x, int y);
    static void PRINT(QString str, char c);
    static void PRINT(QString str, std::vector<int> vec);
    static void PRINT(QString str, std::vector<char> vec);
    static void PRINT(std::vector<int> vec);
    static void PRINT(std::vector<char> vec);
    static void PRINT(std::vector<std::vector<char>> vec);
    static void PRINT(std::vector<std::vector<int>> vec);
    static void PRINT(QString str, std::vector<std::vector<char>> vec);
    static void PRINT(QString str, std::vector<std::vector<int>> vec);
};

}

#endif // STRINGUTILS_H
